all: my_list.o my_allocator.o student_list.o global_declarations.o my_hash_table.o
	gcc -ansi -pedantic-errors -Wall -Werror -g -o my_hash my_list.o my_allocator.o student_list.o global_declarations.o my_hash_table.o

my_list.o: my_list.c my_list.h
	gcc -ansi -pedantic-errors -c -Wall -Werror -g -o my_list.o my_list.c

my_allocator.o: my_allocator.c my_allocator.h
	gcc -ansi -pedantic-errors -c -Wall -Werror -g -o my_allocator.o my_allocator.c

student_list.o: student_list.c
	gcc -ansi -pedantic-errors -c -Wall -Werror -g -o student_list.o student_list.c

global_declarations.o: global_declarations.c global_declarations.h
	gcc -ansi -pedantic-errors -c -Wall -Werror -g -o global_declarations.o global_declarations.c
	
my_hash_table.o: my_hash_table.c my_hash_table.h
	gcc -ansi -pedantic-errors -c -Wall -Werror -g -o my_hash_table.o my_hash_table.c 


clean:
	rm -f *.o my_hash